package com.nwpu.coursesupport.mapper;

import java.util.List;

import com.nwpu.coursesupport.criteria.CurrentLessonSearchCriteria;
import com.nwpu.coursesupport.criteria.StudentManagerSearchCriteria;
import com.nwpu.coursesupport.entity.Lesson;
import com.nwpu.coursesupport.view.LessonView;
import com.nwpu.coursesupport.view.StudentManagerView;

public interface LessonMapper extends BaseMapper<Lesson>{
   
	public int batchSave(List<Lesson> list);
	
	public LessonView findViewById(int id);
	
	public List<Integer> findByIds(List<Integer> ids);
	
	public List<LessonView> findCurrentLessonByTeacher(CurrentLessonSearchCriteria sc);
    
	public List<LessonView> findCurrentLessonByAssistant(CurrentLessonSearchCriteria sc);
	
	public List<LessonView> findCurrentLessonByStudent(CurrentLessonSearchCriteria sc);
	public List<StudentManagerView> findStudentManagerByClassId(StudentManagerSearchCriteria sc);
	
	public List<Integer> findStudentByLessonId(int lessonId);
}